﻿using UnityEngine;
using System.Collections;
using PlayerClasses;

namespace GUIElements
{
	/// <summary>
	/// Go to camp.
	/// </summary>
	public class GoToCamp : MonoBehaviour
	{

		private bool visible;
		//Public variables
		public GUIStyle WindowStyle;
		public GUIStyle boxStyle;
		public GUISkin Skin;

		void Awake ()
		{
			visible = true;
		}

		void OnGUI ()
		{
			GUI.skin = Skin;
			if (visible) {
				if (GUI.Button (new Rect (0, Screen.height - 64, 150, 64), "Go To Camp", WindowStyle)) {
					Squad.Instance.SquadSave(0); //saving as a transfer
					Application.LoadLevel ("Camp");

				}
			}
		}
	}
}
